import com.ynny.project07.dao.StudentDaoImpl;
import com.ynny.project07.entity.Student;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class StudentTest {
    @Autowired
    private StudentDaoImpl studentDaoImpl;

    @Test
    public void testSelect() {
        Student student = studentDaoImpl.selectStudent("10031");
        System.out.println(student);
    }
}
